package com.group.www.dao.impl;

import com.group.www.pojo.GoodsInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface IGoodsinfoDao {

    List<GoodsInfo> queryGoodsInfoBycategoryid(@Param("categoryid") int categoryid);

    List<GoodsInfo> queryAll();

    List<GoodsInfo> queryGoodsInfoBygoodsid(Integer goodsid);

    void save(GoodsInfo goodsInfo);

    void updateById(GoodsInfo entity);

    void delete(GoodsInfo entity);
}
